import { defineStore } from "pinia";
import { ref } from "vue";
import { admerLoginAPI } from "@/apis/admer";
export const useAdmerStore = defineStore('admer', () => {
    const admerInfo = ref({})
    const admerLogin = async (aid, password) => {
        const res = await admerLoginAPI(aid, password);
        console.log(res);
        admerInfo.value = res;
    }
    return { admerInfo, admerLogin }
}, {
    persist: true
})